package com.yunhe.abnormal.formula;

import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

@Component
public class FormulaFunc {

//    @Autowired
//    private FeignApiClient feignApiClient;

    public Object func(String type) throws Exception {
        Method method = this.getClass().getDeclaredMethod(type);
        return method.invoke(this);
    }

//    private Double strategyPower() {
//        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
//        Double results = feignApiClient.getStrategyPower(110201L, 1102010101L,
//                3L, 1102010001600101L, sdf.format(new Date())).getBody().getResults();
//        return results;
//    }
}
